.header {
    width: 100%;
    height: 52px;
    background-color: #333333;
}

.header-wrapper {
    width: 1240px;
    height: 100%;
    margin: 0 auto;
}

.header-wrapper ul {
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;

}

.header-wrapper ul li {
    height: 20px;
    padding: 0 20px;
    position: relative;

}

.header-wrapper ul li::before {
    content: '';
    display: block;
    width: 2px;
    height: 15px;
    background-color: #ccc;
    position: absolute;
    top: 5px;
    left: 0;
}

.header-wrapper ul li:nth-child(1)::before {
    width: 0;
    height: 0;

}

.header-wrapper ul li a {
    width: 56px;
    height: 20px;
    line-height: 20px;
    color: #fff;

    &:hover {
        color: #5EB69C;

    }
}

.header-wrapper ul li:first-child a {
    color: #5AAB93;



}

.header-wrapper ul li:last-child a i.icon-mobile-phone {
    margin-right: 5px;
}

.nav {
    width: 100%;
    height: 132px;
    background-color: #fff;
}

.nav-wrapper {
    width: 1240px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.nav-wrapper .logo {
    width: 200px;
    height: 88px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
}

.nav-wrapper ul {
    width: 673px;
    height: 24px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: calc(200px + 41px);
    transform: translate(0, -50%);
}

.nav-wrapper ul li {
    margin-right: 40px;
}

.nav-wrapper ul li a {
    width: 32px;
    height: 24px;
    line-height: 24px;
    padding-bottom: 10px;
}

.nav-wrapper ul li a:hover {
    color: #5EB69C;
    border-bottom: 2px solid #5EB69C;
}

.nav-wrapper .cart {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    width: 24px;
    height: 24px;
}

.nav-wrapper .cart i.icon-cart-full::before {
    display: block;
    width: 24px;
    height: 24px;
}

.nav-wrapper .cart::after {
    content: '2';
    width: 20px;
    height: 15px;
    background: #E26237;
    border-radius: 15px;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(50%, -50%);
    text-align: center;
    font-size: 14px;
    line-height: 15px;
}

.nav-wrapper .search {
    position: absolute;
    top: 50%;
    right: calc(24px + 66px);
    transform: translate(0, -50%);
}

.nav-wrapper .search input {
    width: 200px;
    height: 40px;
    padding: 0 35px;
    border-radius: 40px;
    background: #fff;
    font-size: 14px;
    color: #333;
    border: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-wrapper .search input::placeholder {
    color: #ccc;
}

.nav-wrapper .search i.icon-search {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(0, -50%);
    color: #ccc;
}

.banner {
    width: 100%;
    height: 500px;
    background-color: #ccc;
}

.banner .banner-wrapper {
    width: 1240px;
    height: 500px;
    margin: 0 auto;
    background-image: url(../uploads/banner1.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
}

.banner .banner-wrapper .banner-left {
    width: 250px;
    height: 500px;
    background-color: #5C5D5D;
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;


}

.banner .banner-wrapper .banner-left dl {
    width: 250px;
    height: 50px;
    line-height: 50px;
    display: flex;
    cursor: pointer;
    position: relative;
}

.banner .banner-wrapper .banner-left dl:hover {
    background-color: #00BE9A;
}

.banner .banner-wrapper .banner-left dl dt {
    margin-right: 14px;
    padding-left: 20px;
    font-size: 16px;

}

.banner .banner-wrapper .banner-left dl dd {
    margin-right: 5px;
    height: 100%;
}

.banner .banner-wrapper .banner-left dl:hover {
    background-color: #00BE9A;
}

.banner .banner-wrapper .banner-left dl i {
    position: absolute;
    right: 10px;
}

.banner-right {
    width: calc(1240px - 250px);
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;

}

.banner-right ul {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 14px;
    display: flex;
    justify-content: space-between;
}

.banner-right ul li {
    width: 14px;
    height: 14px;
    line-height: 14px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-right ul li a {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.banner-right ul li:hover a {
    opacity: 1;
}

.banner-right ul li:hover {
    transform: scale(1.5);
}

.section {
    width: 100%;
    background-color: #fff;
}

.section .sec1-wrapper,
.section .sec2-wrapper {
    width: 1240px;
    margin: 0 auto;

}

.sec1-top,
.sec2-top {
    width: 100%;
    height: 102px;
    position: relative;
    padding-bottom: 30px;
}

.sec1-top h2,
.sec2-top h2 {
    display: block;
    width: 120px;
    height: 42px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    font-size: 30px;
    font-weight: 400;
    color: #333;
}

.sec1-top p,
.sec2-top p {
    position: absolute;
    top: 60%;
    left: 155px;
    transform: translate(0, -50%);
    font-size: 14px;
    color: #999;
}

.sec1-top a {
    position: absolute;
    top: 60%;
    right: 0;
    transform: translate(0, -50%);
    font-size: 14px;
    color: #999;
    font-size: 14px;
    color: #999;
}

.sec1-top a:hover {
    color: #5EB69C;
}

.sec1-top a i.icon-arrow-right-bold {
    margin-left: 5px;
}

.sec1-bottom,
.sec2-bottom {
    width: 100%;
    height: 404px;
    display: flex;
    justify-content: space-between;
}

.sec1-bottom .sec1-item,
.sec2-bottom .sec2-item {
    width: 304px;
    height: 100%;

    &:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
        transform: scale(1.05);
        transition: all 0.3s ease;
        cursor: pointer;

    }

}

.sec1-bottom .sec1-item .img img,
.sec2-bottom .sec2-item .img img {
    width: 304px;
    height: 304px;
}

.sec1-bottom .sec1-item .details,
.sec2-bottom .sec2-item .details {
    width: 100%;
    height: 100px;
    text-align: center;
    padding-top: 18px;
    font-size: 20px;
    background-color: #EEF9F4;
}

.sec2-bottom {

    margin-bottom: 60px;

    .sec2-item {
        .details {
            background-color: #fff;

            p {
                &:first-child {
                    margin-bottom: 15px;
                    font-size: 20px;
                }

                &:last-child {
                    font-size: 16px;
                    color: #A1A1A1;
                }
            }
        }
    }
}

@keyframes imgActive {

    /* 鼠标移至图片时，图片进行先放大，再居中，最后恢复 */
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(0%, -50%) scale(1.5);
    }

    75% {
        transform: translate(0%, -50%) scale(1.2);
    }

    100% {
        transform: translate(0, 0);
    }
}

.sec1-bottom .sec1-item .details p:last-child {
    margin-top: 9px;
    color: #AA2113;
}

.section.sec3 {
    width: 100%;
    height: 468px;
    background-color: #F5F5F5;

    .sec3-wrapper {
        width: 1240px;
        height: 100%;
        margin: 0 auto;

        .sec3-top {
            width: 100%;
            height: 122px;
            position: relative;

            h2 {
                position: absolute;
                top: 50%;
                left: 0;
                transform: translate(0, -50%);
            }

            p {
                position: absolute;
                top: 52%;
                left: 155px;
                transform: translate(0, -50%);
            }

            .arrow {
                position: absolute;
                right: 0;
                bottom: 15px;
                color: #fff;
                width: 52px;
                height: 20px;
                display: flex;
                justify-content: space-between;

                i {
                    width: 20px;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    display: block;
                    background-color: #ccc;

                    &:hover {
                        background-color: #5EB69C;
                    }
                }
            }
        }

        .sec3-bottom {
            display: flex;
            justify-content: space-between;

            .sec3-item {

                img {
                    width: 244px;
                    height: 306px;

                    &:hover {
                        animation: imgActive 3s ease-in-out 0s 1 normal forwards;
                        cursor: pointer;
                    }

                }


            }
        }
    }
}

@keyframes obscure {
    from {
        height: 0;

    }

    to {
        height: 83.5px;
    }
}

@keyframes radius-scale {
    0% {
        border-radius: 0;
        transform: scale(1);
    }

    50% {
        border-radius: 12% 12% 0 0;
        transform: scale(1.05);
    }

    100% {
        border-radius: 0;
        transform: scale(1);
    }
}

.section.sec4 {
    width: 100%;
    height: 732px;
    background-color: #fff;


    .content1-wrapper {
        width: 1240px;
        height: 100%;
        margin: 0 auto;

        .content1-top {
            width: 100%;
            height: 122px;
            position: relative;

            h2 {
                position: absolute;
                top: 50%;
                left: 0;
                transform: translate(0, -50%);
            }

            ul {
                position: absolute;
                top: 50%;
                right: 151px;
                transform: translate(0, -50%);
                display: flex;
                justify-content: space-between;
                width: 380px;
                height: 20px;

                li {
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    padding: 0 5px;

                    &:hover {
                        background-color: #00BE9A;
                    }

                    a {
                        height: 22px;
                        font-size: 16px;

                    }
                }
            }

            a.more {
                display: block;
                width: 84px;
                height: 22px;
                line-height: 22px;
                position: absolute;
                top: 50%;
                right: 0;
                transform: translate(0, -50%);
                font-size: 16px;
                color: #A1A1A1;

            }
        }

        .content1-bottom {
            width: 100%;
            height: 610px;
            position: relative;

            .bottom-left {
                width: 248px;
                height: 610px;
                position: absolute;
                top: 0;
                left: 0;
                margin-right: 24px;

                img {
                    width: 100%;
                    height: 100%;
                }

            }

            .bottom-right {
                width: calc(100% - 248px - 24px);
                height: 100%;
                position: absolute;
                top: 0;
                right: 0;
                display: flex;
                justify-content: space-between;
                flex-wrap: wrap;
                flex: 4;



                .right-item {
                    width: 242px;
                    height: 305px;
                    padding: 10px 21px;
                    text-align: left;



                    .similar-goods {
                        display: none;
                        width: 240px;
                        /* height: 83.5px; */
                        height: 0;
                        background-color: #00BE9A;
                        text-align: center;
                        color: #fff;
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        /* transition: height 1s ease-in-out; */
                        /* opacity: 0; */


                        h2 {
                            font-size: 18px;
                            margin-top: 15.5px;
                            margin-bottom: 10px;
                        }

                        p {
                            font-size: 13px;
                        }
                    }

                    &:hover {
                        border: 2px solid #00BE9A;
                        transform: scale(1.05);
                        box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.6);

                        .similar-goods {
                            display: block;
                            /* opacity: 1;
                            transition: all 0.5s; */
                            /* animation: name duration timing-function delay iteration-count direction fill-mode; */
                            animation: obscure 0.5s ease-in-out 0s 1 normal forwards;

                        }

                        animation: radius-scale 3s ease-in-out 0s 1 normal forwards;

                    }

                    .item-img {

                        img {
                            width: 200px;
                            height: 180px;
                        }
                    }
                }

                .item-details {
                    margin-top: 10px;

                    .details-p {
                        width: 200px;
                        height: 57px;
                        font-size: 12px;
                    }

                    span {
                        display: inline-block;

                        font-size: 22px;
                        color: #AF2F22;

                    }
                }

            }

        }
    }
}


.section.sec8 {
    width: 100%;
    height: 427px;

    .sec8-wrapper {
        width: 1240px;
        height: 100%;
        margin: 100px auto 40px;

        .sec8-top {
            width: 100%;
            height: 42px;
            position: relative;
            margin-bottom: 30px;

            h2 {
                position: absolute;
                top: 0;
                left: 0;
                width: 120px;
                height: 100%;
                line-height: 42px;
                font-size: 30px;
                color: #333;
            }

            span {
                position: absolute;
                top: 0;
                right: 0;
                color: #A1A1A1;
            }
        }


        .sec8-bottom {
            display: flex;
            justify-content: space-between;

            .sec8-item {
                position: relative;
                cursor: pointer;
                transition: all .3s ease-in-out;

                &:hover {
                    transform: scale(1.05);
                    box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.6);
                }



                .item-img {
                    width: 405px;
                    height: 288px;

                    img {
                        width: 100%;
                        height: 100%;
                    }
                }

                .item-details {
                    position: absolute;
                    bottom: 67px;
                    left: 0;
                    width: 100%;
                    height: 90px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    color: #fff;

                    .details-p {

                        p {
                            display: block;
                            width: 270px;
                            height: 28px;
                            font-size: 20px;
                            line-height: 28px;

                            &:first-child {
                                margin-top: 20px;
                            }

                            margin-left: 15px;

                            &:last-child {
                                font-size: 16px;
                            }
                        }


                    }

                    span {
                        display: inline-block;
                        width: 80px;
                        height: 25px;
                        background-color: #fff;
                        color: #B64134;
                        font-size: 18px;
                        margin-right: 15px;
                        margin-top: 35px;
                    }

                }

                .item-enjoy {
                    width: 100%;
                    height: 67px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 0 15px;

                    i.iconfont.icon-favorites-fill::before {
                        color: #AA2113;
                    }

                    i:first-child {
                        margin-right: 20px;
                    }
                }
            }
        }
    }
}

.footer {
    width: 100%;
    height: 581.5px;
    background-color: #F5F5F5;

    .footer-wrapper {
        width: 1240px;
        height: 100%;
        margin: 0 auto;

        .footer-top {
            width: 100%;
            height: 178px;

            ul {

                display: flex;
                justify-content: space-evenly;
                align-items: center;
                border-bottom: 1px solid #E8E8E8;

                li {
                    width: 100%;
                    height: 100%;
                    line-height: 178px;
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    align-items: center;

                    &:nth-child(1) {
                        i {
                            background-image: url(../images/sprite.png);
                            background-position: 0px 0px;
                            background-repeat: no-repeat;
                            background-size: 100%;
                        }
                    }

                    &:nth-child(2) {
                        i {
                            background-image: url(../images/sprite.png);
                            background-position: 0px -58px;
                            background-repeat: no-repeat;
                            background-size: 100%;
                        }
                    }

                    &:nth-child(3) {
                        i {
                            background-image: url(../images/sprite.png);
                            background-position: 0px -116px;
                            background-repeat: no-repeat;
                            background-size: 100%;
                        }
                    }

                    &:nth-child(4) {
                        i {
                            background-image: url(../images/sprite.png);
                            background-position: 0px -174px;
                            background-repeat: no-repeat;
                            background-size: 100%;
                        }
                    }

                    i {
                        display: block;
                        width: 58px;
                        height: 58px;
                        background-color: #fff;
                        margin-right: 20px;
                        border-radius: 58px;
                    }
                }
            }
        }

        .footer-bottom {
            width: 100%;
            height: 402.5px;
            position: relative;

            .bottom-left {
                width: 821px;
                height: 152.5px;
                margin-top: 60px;
                position: absolute;
                top: 0;
                left: 0;

                display: flex;
                justify-content: space-between;

                dl {
                    margin-right: 84px;
                    width: 84px;

                    dt {
                        margin-bottom: 30px;
                        width: 84px;
                    }

                    dd {
                        padding-bottom: 10.5px;
                        width: 225px;
                    }
                }

            }

            .bottom-right {
                width: 295px;
                height: 152.5px;
                margin-top: 60px;
                display: flex;
                justify-content: space-between;
                position: absolute;
                top: 0;
                right: 0;

                p {
                    margin-top: 10px;
                    font-size: 16px;
                    color: #969696;
                    text-align: center;
                }

                .right-wx-code {
                    img {
                        width: 120px;
                        height: 120px;
                    }
                }

                .right-app-code {
                    img {
                        width: 120px;
                        height: 120px;
                    }
                }
            }

            .footer-info {
                width: 100%;
                height: 60px;
                color: #A1A1A1;
                margin-top: 100.5px;
                margin-bottom: 40px;
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translate(-50%, 0);

                ul {
                    width: 611px;
                    height: 20px;
                    margin: 0 auto;
                    display: flex;
                    justify-content: space-between;
                    align-items: flex-start;
                    margin-bottom: 10px;

                    li {
                        height: 100%;
                        line-height: 20px;
                        padding: 0 10px;
                        border-right: 1px solid #ccc;

                        &:last-child {
                            border-right: none;
                        }

                    }

                }

                p {
                    display: block;
                    text-align: center;

                }
            }
        }


    }
}